package com.zbb.order.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 订单快照
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("zbb_order_snapshot")
@NoArgsConstructor
public class OrderSnapshot implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 求助用户编码
     */
    private String groupUserCode;

    /**
     * 帮助用户编码
     */
    private String helpUserCode;


    /**
     * 订单详情编码
     */
    private String orderInitiateCode;

    /**
     * 订单标题
     */
    private String title;

    /**
     * 订单内容
     */
    private String content;

    /**
     * 订单开始时间
     */
    private LocalDateTime startTime;

    /**
     * 订单结束时间
     */
    private LocalDateTime endTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建时间
     */
    private LocalDateTime updateTime;

    /**
     * 状态
     */
    private Integer status;

    private Integer evaluationStatus;

    //照片
    @TableField(exist = false)
    private String photoUrl;

    public OrderSnapshot(String id, String groupUserCode, String helpUserCode, String orderInitiateCode, String title, String content, LocalDateTime startTime, LocalDateTime endTime, LocalDateTime createTime, LocalDateTime updateTime, Integer status, Integer evaluationStatus) {
        this.id = id;
        this.groupUserCode = groupUserCode;
        this.helpUserCode = helpUserCode;
        this.orderInitiateCode = orderInitiateCode;
        this.title = title;
        this.content = content;
        this.startTime = startTime;
        this.endTime = endTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
        this.evaluationStatus = evaluationStatus;
    }
}
